package com.design.mode.factory;

public class ProductFactory extends AbstractFactory {

	@Override
	public Product createProduct(int mode) {
		if (mode == 1)
			return new ProductA();
		else if (mode == 2)
			return new ProductB();
		else return null;
	}

}
